package cn.com.dstz.soft;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import org.apache.commons.lang.xwork.StringUtils;
import org.apache.struts2.ServletActionContext;
import cn.com.dstz.base.action.BaseAction;
import cn.com.dstz.utils.DataBaseUtils;
import cn.com.dstz.web.constants.Constants;

/**
 * 问题：
 * 	1. 读取皮肤目录未过滤好文件类型，把svn文件都读过来了
 * @author 叶装装
 *
 */
public class SoftAction extends BaseAction{

	/**
	 * 软件配置
	 * 黄阳晨
	 * @throws IOException 
	 */
	private FileInputStream fis = null;
	private FileOutputStream fos = null;
	private FileWriter fw = null;
	private BufferedReader br = null;
	public String softFirst(){
		if(readFile()){
			return "second";
		}
			return "500_error";
	}
	
	public void softSecond(){
		Map<String,Object> resultMap = new HashMap<String,Object>();
		if(config()){
			resultMap.put("success", "success");
			this.responseToJsonObject(resultMap);
		}else{
			resultMap.put("success", "false");
			this.responseToJsonObject(resultMap);
		}
	}
	
	public void softThird(){
		if(config()){
			uploadImage();
			this.outprintResponse("<script  language='javascript' type='text/javascript'>alert('修改成功');window.location.href= '/admin/soft/softthird.jsp'</script>");
		}else{
			this.outprintResponse("<script type='text/javascript'>alert('服务器繁忙,请稍后重试');window.location.href= '/admin/soft/softthird.jsp'</script>");
		}
	}
	
	public boolean readFile(){
		Map<String,Object> pathValue = getPath();
		String sql = "select soft_id from dstz_soft where topaid=:topaid and soft_id=:soft_id";
		Map<String,Object> resultMap =this.baseService.queryForMap(sql, DataBaseUtils.getData(new String[]{"topaid","soft_id"}, new Object[]{topaid,softPifu}));
		if(resultMap==null||resultMap.isEmpty()){
			deletePifu(pathValue.get("dailiPath").toString());
			setDefaultSkin();
		}
		File fileName = null;
		int len = 0;
		byte[] buf =null;
		File skinFile = new File(pathValue.get("skinPath").toString());
		File dailiFile = null;
		//是文件进行文件处理，否则进行文件夹处理
		if(skinFile.isFile()){
			
		}else{
			File[] fileList = skinFile.listFiles();
			for(File file:fileList){
				buf = new byte[(int)file.length()];
				try {
					fis = new FileInputStream(file);
					while((len=fis.read(buf))!=-1){
						dailiFile = new File(pathValue.get("copySkinPath").toString());
						if(!dailiFile.exists()){
							dailiFile.mkdirs();
						}
						fileName = new File(dailiFile+"/"+file.getName());
						if(fileName.exists())
							fileName.delete();
						fos  = new FileOutputStream(fileName);
						fos.write(buf,0,len);
						fos.flush();
					}
				} catch (Exception e) {
					e.printStackTrace();
				}finally{
					fisClose();
				}
			}
		}
		copyUpdateText();
		config();
		return true;
	}
	
	/**
	 * 将默认配置信息录入数据库
	 */
	protected void setDefaultSkin(){
		this.baseService.deleteBySql("dstz_soft", DataBaseUtils.getData(new String[]{"topaid"}, new Object[]{topaid}));
		String path = "/daili/"+topaid+"/"+softPifu+"/";
		baseService.save("dstz_soft", DataBaseUtils.getData(new String[]{
				"topaid","soft_id","path","xinwen","gaoshou","zaixian","zhuanye","hangqing","xiadan",
				"gonggao","kaihu","kefu","logo_top","logo_main_top","logo_main",
				"logo_tanx","yincang_max","yincang_min"
		}, new Object[]{
				topaid,softPifu,path,"xinwen.png","gaoshou.png"
				,"zaixian.png","zhuanye.png","hangqing.png"
				,"xiadan.png","gonggao.png","kaihu.png"
				,"kefu.png","logo_top.png","logo_main_top.png"
				,"logo_main.png","logo_tanx.png","yincang_max.png"
				,"yincang_min.png"
		}));
	}
	/**
	 * 因为皮肤只能有一个，所以先删除原始皮肤，再更新新皮肤
	 */
	public void deletePifu(String path){
		File oldSkinFile = new File(path);
		if(!oldSkinFile.exists()){
			return;
		}
		if(!oldSkinFile.isFile()){
			File[] file = oldSkinFile.listFiles();
			for(File f:file){
				if(!f.isFile()){
					deleteAllImage(f.getAbsolutePath());
				}
			}
		}
	}
	
	/**
	 * 删除皮肤目录里面的所有文件
	 */
	public void deleteAllImage(String path){
		File file = new File(path);
		File[] files = file.listFiles();
		for(File f:files){
			if(f.isFile())
			f.delete();
		}
		file.delete();
	}
	
	/**
	 * 创建update文本
	 * 从默认的代理配置路径复制一份默认配置到代理路径
	 */
	public void copyUpdateText(){
		Map<String,Object> pathValue = getPath();
		File checkUpdateFile = new File(pathValue.get("copyUpdatePath").toString());
		if(checkUpdateFile.exists())
			return ;
		File updateFile = new File(pathValue.get("updatePath").toString());
		try {
			fis = new FileInputStream(updateFile);
			byte[] buf = new byte[10240];
			int len = 0;
			while((len =fis.read(buf))!=-1){
				fos = new FileOutputStream(pathValue.get("copyUpdatePath").toString());
				fos.write(buf, 0, len);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}finally{
			fisClose();
		}
	}
	
	/*
	 * 修改代理更改的属性
	 */
	public boolean config(){
		Map<String,Object> pathValue = getPath();
		try {
			br = new BufferedReader(new FileReader(pathValue.get("copyUpdatePath").toString()));
			StringBuffer sb = new StringBuffer();
			String line="";
			while((line=br.readLine())!=null){
				sb.append(replaceStr(line)+"\r\n");
			}
			fw  = new FileWriter(pathValue.get("copyUpdatePath").toString());
			fw.write(sb.toString());
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			brClose();
		}
		
		return true;
	}
	
	/**
	 * 图片上传,若没有图片则什么也不做
	 */
	public void uploadImage(){
		Map<String,Object> fileMap = checkUploadImage();
		if(fileMap==null){
			return ;
		}
		Map<String,Object> valuePath = getPath();
		String pifu = (String)getSession().getAttribute("softPifu");
		String realPath = valuePath.get("dailiPath").toString()+"/"+pifu;
		String filename = (String)fileMap.get("fileName");
		String newFileName = UUID.randomUUID()+StringUtils.substring(filename,filename.lastIndexOf("."));
		File uploadFile = new File( realPath +"/"+ newFileName );
		try{
			org.apache.commons.io.FileUtils.copyFile((File)fileMap.get("file"), uploadFile);
		}catch( IOException e ){
			e.printStackTrace();
		}
		if(updateImagePath(filename,newFileName)>0){
			
		}
	}
	/**
	 * 更新数据库的图片路径地址
	 * @param filename
	 */
	public int updateImagePath(String filename,String newFileName){
		String name = StringUtils.substring(filename, 0, filename.lastIndexOf("."));
		int count = this.baseService.update("dstz_soft", DataBaseUtils.getData(
				new String[]{name}, new Object[]{newFileName}),
				DataBaseUtils.getData(
				new String[]{"topaid"}, new Object[]{topaid}));
		return count;
	}
	/**
	 * 判断上传的是那个组件的图片
	 * 返回当前组件的file filename
	 * @return
	 */
	public Map<String,Object> checkUploadImage(){
		Map<String,Object> fileMap = new HashMap<String,Object>();
		if(StringUtils.isNotEmpty(hangqingTuBiaoFileName)){
			fileMap.put("file", hangqingTuBiao);
			fileMap.put("fileName", "hangqing"+StringUtils.substring(hangqingTuBiaoFileName,hangqingTuBiaoFileName.lastIndexOf(".") ));
			return fileMap;
		}
		if(StringUtils.isNotEmpty(gaoshouTuBiaoFileName)){
			fileMap.put("file", gaoshouTuBiao);
			fileMap.put("fileName", "gaoshou"+StringUtils.substring(gaoshouTuBiaoFileName,gaoshouTuBiaoFileName.lastIndexOf(".") ));
			return fileMap;
		}
		if(StringUtils.isNotEmpty(zhuanyeTuBiaoFileName)){
			fileMap.put("file", zhuanyeTuBiao);
			fileMap.put("fileName", "zhuanye"+StringUtils.substring(zhuanyeTuBiaoFileName,zhuanyeTuBiaoFileName.lastIndexOf(".") ));
			return fileMap;
		}
		if(StringUtils.isNotEmpty(zaixianTuBiaoFileName)){
			fileMap.put("file", zaixianTuBiao);
			fileMap.put("fileName", "zaixian"+StringUtils.substring(zaixianTuBiaoFileName,zaixianTuBiaoFileName.lastIndexOf(".") ));
			return fileMap;
		}
		if(StringUtils.isNotEmpty(xinwenTuBiaoFileName)){
			fileMap.put("file", xinwenTuBiao);
			fileMap.put("fileName", "xinwen"+StringUtils.substring(xinwenTuBiaoFileName,xinwenTuBiaoFileName.lastIndexOf(".") ));
			return fileMap;
		}
		if(StringUtils.isNotEmpty(gonggaoTuBiaoFileName)){
			fileMap.put("file", gonggaoTuBiao);
			fileMap.put("fileName", "gonggao"+StringUtils.substring(gonggaoTuBiaoFileName,gonggaoTuBiaoFileName.lastIndexOf(".") ));
			return fileMap;
		}
		if(StringUtils.isNotEmpty(logoFileName)){
			fileMap.put("file", logo);
			fileMap.put("fileName", "logo_top"+StringUtils.substring(logoFileName,logoFileName.lastIndexOf(".") ));
			return fileMap;
		}
		return null;
	}

	/*
	 * 获取代理配置信息
	 */
	public void getSoftProperty(){
		Map<String,Object> pathValue = getPath();
		File checkFile = new File(pathValue.get("copyUpdatePath").toString());
		if(!checkFile.exists())
			return ;
		Map<String,Object> resultMap = new HashMap<String,Object>();
		String line = null;
		try {
			br = new BufferedReader(new FileReader(pathValue.get("copyUpdatePath").toString()));
			while((line=br.readLine())!=null){
				setSoftProperty(line,resultMap);
			}
			readDBImagePaht(resultMap);
			this.responseToJsonObject(resultMap);
			return ;
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			brClose();
		}
	}
	
	/*
	 * 配置一些方法需要的通用路径
	 */
	public Map<String,Object> getPath(){
		//获取项目上下文路径
		String rootPath = ServletActionContext.getServletContext().getRealPath("/");
		Map<String,Object> admin = this.getEntityInSession(Constants.ADMIN_IN_SESSION);
		topaid = admin.get("topaid").toString();
		//获取默认的代理配置路径
		String updatePath = rootPath+"daili/update.txt";
		//获取需要添加的代理配置文件路径
		String copyUpdatePath = rootPath+"daili/"+topaid+"/update.txt";
		//获取默认代理选择的皮肤的路径
		String skinPath = rootPath+"hd_v2/skin/"+softPifu;
		//获取需要为代理放置皮肤的路径
		String copySkinPath = rootPath+"daili/"+topaid+"/"+softPifu;
		//获取代理根目录
		String dailiPath = rootPath+"daili/"+topaid;
		Map<String,Object> pathMap = new HashMap<String,Object>();
		pathMap.put("dailiPath", dailiPath);
		pathMap.put("updatePath", updatePath);
		pathMap.put("copyUpdatePath", copyUpdatePath);
		pathMap.put("skinPath", skinPath);
		pathMap.put("copySkinPath", copySkinPath);
		return pathMap;
	}
	
	/**
	 * 将数据库的图片路径放入MAP集合
	 * @param map
	 */
	public void readDBImagePaht(Map<String,Object> map){
		String sql = "select * from dstz_soft where topaid=:topaid";
		Map<String,Object> resultMap = baseService.queryForMap(sql, DataBaseUtils.getData(new String[]{"topaid"}, new Object[]{topaid}));
		map.putAll(resultMap);
	}
	
	public String replaceStr(String str){
		if(StringUtils.isNotEmpty(softName)){
			if(str.indexOf("软件名=")!=-1){
				return "软件名="+softName;
			}
		}
		if(StringUtils.isNotEmpty(softPifu)){
			if(str.indexOf("皮肤类型=")!=-1){
				return "皮肤类型="+softPifu;
			}
		}
		if(StringUtils.isNotEmpty(softWangZhi)){
			if(str.indexOf("官方网站地址=")!=-1){
				return "官方网站地址="+softWangZhi;
			}
		}
		if(StringUtils.isNotEmpty(softGuanWang)){
			if(str.indexOf("官方网站显示=")!=-1){
				return "官方网站显示="+softGuanWang;
			}
		}
		if(StringUtils.isNotEmpty(softZhangHao)){
			if(str.indexOf("注册帐号按钮显示=")!=-1){
				return "注册帐号按钮显示="+softZhangHao;
			}
		}
		if(StringUtils.isNotEmpty(zhangHaoLeft)){
			if(str.indexOf("注册帐号按钮左边=")!=-1){
				return "注册帐号按钮左边="+zhangHaoLeft;
			}
		}
		if(StringUtils.isNotEmpty(zhangHaoTop)){
			if(str.indexOf("注册帐号按钮顶部=")!=-1){
				return "注册帐号按钮顶部="+zhangHaoTop;
			}
		}
		if(StringUtils.isNotEmpty(guanWangLeft)){
			if(str.indexOf("官方网站按钮左边=")!=-1){
				return "官方网站按钮左边="+guanWangLeft;
			}
		}
		if(StringUtils.isNotEmpty(guanWangTop)){
			if(str.indexOf("官方网站按钮顶部=")!=-1){
				return "官方网站按钮顶部="+guanWangTop;
			}
		}
		if(StringUtils.isNotEmpty(softKefu)){
			if(str.indexOf("客服按钮显示=")!=-1){
				return "联系客服按钮显示="+softKefu;
			}
		}
		if(StringUtils.isNotEmpty(kefuLeft)){
			if(str.indexOf("客服按钮左边=")!=-1){
				return "联系客服按钮左边="+kefuLeft;
			}
		}
		if(StringUtils.isNotEmpty(kefuTop)){
			if(str.indexOf("客服按钮顶部=")!=-1){
				return "联系客服按钮顶部="+kefuTop;
			}
		}
		
		//设置行情决策属性
		if(StringUtils.isNotEmpty(hangqingName)){
			if(str.indexOf("导航1=")!=-1){
				return "导航1="+hangqingName;
			}
		}
		if(StringUtils.isNotEmpty(hangqingZuJian)){
			if(str.indexOf("导航1组件=")!=-1){
				if(hangqingZuJian.equals("假")){
					return "导航1组件="+hangqingZuJian;
				}else{
					return "导航1组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(hangqingZuJian)){
			if(str.indexOf("导航1网址=")!=-1){
				if(StringUtils.isNotEmpty(hangqinglianjie)&&hangqingZuJian.equals("假")){
					return "导航1网址="+hangqinglianjie;
				}
				return "导航1网址="+hangqingZuJian;
			}
		}
		//设置高手操盘属性
		if(StringUtils.isNotEmpty(gaoshouName)){
			if(str.indexOf("导航2=")!=-1){
				return "导航2="+gaoshouName;
			}
		}
		if(StringUtils.isNotEmpty(gaoshouZuJian)){
			if(str.indexOf("导航2组件=")!=-1){
				if(gaoshouZuJian.equals("假")){
					return "导航2组件="+gaoshouZuJian;
				}else{
					return "导航2组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(gaoshouZuJian)){
			if(str.indexOf("导航2网址=")!=-1){
				if(StringUtils.isNotEmpty(gaoshoulianjie)&&gaoshouZuJian.equals("假")){
					return "导航2网址="+gaoshoulianjie;
				}
				return "导航2网址="+gaoshouZuJian;
			}
		}
		//设置新闻属性
		if(StringUtils.isNotEmpty(xinwenName)){
			if(str.indexOf("导航3=")!=-1){
				return "导航3="+xinwenName;
			}
		}
		if(StringUtils.isNotEmpty(xinwenZuJian)){
			if(str.indexOf("导航3组件=")!=-1){
				if(xinwenZuJian.equals("假")){
					return "导航3组件="+xinwenZuJian;
				}else{
					return "导航3组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(xinwenZuJian)){
			if(str.indexOf("导航3网址")!=-1){
				if(StringUtils.isNotEmpty(xinwenlianjie)&&xinwenZuJian.equals("假")){
					return "导航3网址="+xinwenlianjie;
				}
				return "导航3网址="+xinwenZuJian;
			}
		}
		//设置专业分析属性
		if(StringUtils.isNotEmpty(zhuanyeName)){
			if(str.indexOf("导航4=")!=-1){
				return "导航4="+zhuanyeName;
			}
		}
		if(StringUtils.isNotEmpty(zhuanyeZuJian)){
			if(str.indexOf("导航4组件=")!=-1){
				if(zhuanyeZuJian.equals("假")){
					return "导航4组件="+zhuanyeZuJian;
				}else{
					return "导航4组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(zhuanyeZuJian)){
			if(str.indexOf("导航4网址")!=-1){
				if(StringUtils.isNotEmpty(zhuanyelianjie)&&zhuanyeZuJian.equals("假")){
					return "导航4网址="+zhuanyelianjie;
				}
				return "导航4网址="+zhuanyeZuJian;
			}
		}
		//设置在线交流属性
		if(StringUtils.isNotEmpty(zaixianZuJian)){
			if(str.indexOf("导航5网址")!=-1){
				if(StringUtils.isNotEmpty(zaixianlianjie)&&zaixianZuJian.equals("假")){
					return "导航5网址="+zaixianlianjie;
				}
				return "导航5网址="+zaixianZuJian;
			}
		}
		if(StringUtils.isNotEmpty(zaixianZuJian)){
			if(str.indexOf("导航5组件=")!=-1){
				if(zaixianZuJian.equals("假")){
					return "导航5组件="+zaixianZuJian;
				}else{
					return "导航5组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(zaixianName)){
			if(str.indexOf("导航5=")!=-1){
				return "导航5="+zaixianName;
			}
		}
		//设置系统公告属性
		if(StringUtils.isNotEmpty(gonggaoName)){
			if(str.indexOf("导航6=")!=-1){
				return "导航6="+gonggaoName;
			}
		}
		if(StringUtils.isNotEmpty(gonggaoZuJian)){
			if(str.indexOf("导航6组件=")!=-1){
				if(gonggaoZuJian.equals("假")){
					return "导航6组件="+gonggaoZuJian;
				}else{
					return "导航6组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(gonggaoZuJian)){
			if(str.indexOf("导航6网址")!=-1){
				if(StringUtils.isNotEmpty(gonggaolianjie)&&gonggaoZuJian.equals("假")){
					return "导航6网址="+gonggaolianjie;
				}
				return "导航6网址="+gonggaoZuJian;
			}
		}
		if(StringUtils.isNotEmpty(gonggaoShow)){
			if(str.indexOf("导航6显示=")!=-1){
				return "导航6显示="+gonggaoShow;
			}
		}
		//设置下单属性
		if(StringUtils.isNotEmpty(xiadanZuJian)){
			if(str.indexOf("导航7网址")!=-1){
				if(StringUtils.isNotEmpty(xiadanlianjie)&&xiadanZuJian.equals("假")){
					return "导航7网址="+xiadanlianjie;
				}
				return "导航7网址="+xiadanZuJian;
			}
		}
		if(StringUtils.isNotEmpty(xiadanZuJian)){
			if(str.indexOf("导航7组件=")!=-1){
				if(xiadanZuJian.equals("假")){
					return "导航7组件="+xiadanZuJian;
				}else{
					return "导航7组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(xiadanName)){
			if(str.indexOf("导航7=")!=-1){
				return "导航7="+xiadanName;
			}
		}
		if(StringUtils.isNotEmpty(xiadanShow)){
			if(str.indexOf("导航7显示=")!=-1){
				return "导航7显示="+xiadanShow;
			}
		}
		
		//设置开户属性
		if(StringUtils.isNotEmpty(kaihuZuJian)){
			if(str.indexOf("导航8网址")!=-1){
				if(StringUtils.isNotEmpty(kaihulianjie)&&kaihuZuJian.equals("假")){
					return "导航8网址="+kaihulianjie;
				}
				return "导航8网址="+kaihuZuJian;
			}
		}
		if(StringUtils.isNotEmpty(kaihuZuJian)){
			if(str.indexOf("导航8组件=")!=-1){
				if(kaihuZuJian.equals("假")){
					return "导航8组件="+kaihuZuJian;
				}else{
					return "导航8组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(kaihuName)){
			if(str.indexOf("导航8=")!=-1){
				return "导航8="+kaihuName;
			}
		}
		if(StringUtils.isNotEmpty(kaihuShow)){
			if(str.indexOf("导航8显示=")!=-1){
				return "导航8显示="+kaihuShow;
			}
		}
		//设置客服属性
		if(StringUtils.isNotEmpty(kefuZuJian)){
			if(str.indexOf("导航9网址")!=-1){
				if(StringUtils.isNotEmpty(kefulianjie)&&kefuZuJian.equals("假")){
					return "导航9网址="+kefulianjie;
				}
				return "导航9网址="+kefuZuJian;
			}
		}
		if(StringUtils.isNotEmpty(kefuZuJian)){
			if(str.indexOf("导航9组件=")!=-1){
				if(kefuZuJian.equals("假")){
					return "导航9组件="+kefuZuJian;
				}else{
					return "导航9组件=真";
				}
			}
		}
		if(StringUtils.isNotEmpty(kefuName)){
			if(str.indexOf("导航9=")!=-1){
				return "导航9="+kefuName;
			}
		}
		if(StringUtils.isNotEmpty(kefuShow)){
			if(str.indexOf("导航9显示=")!=-1){
				return "导航9显示="+kefuShow;
			}
		}
		return str;
	}
	
	/**
	 * 从文本中获取代理配置信息
	 */
	public Map<String,Object> setSoftProperty(String str,Map<String,Object> resultMap){
		if(str.indexOf("软件名=")!=-1)
			resultMap.put("softName", str.substring(4));
		if(str.indexOf("官方网站地址=")!=-1)
			resultMap.put("softWangZhi", str.substring(7));
		if(str.indexOf("注册帐号按钮显示=")!=-1)
			resultMap.put("softZhangHao", str.substring(9));
		if(str.indexOf("注册帐号按钮左边=")!=-1)
			resultMap.put("zhangHaoLeft", str.substring(9));
		if(str.indexOf("注册帐号按钮顶部=")!=-1)
			resultMap.put("zhangHaoTop", str.substring(9));
		if(str.indexOf("官方网站显示=")!=-1)
			resultMap.put("softGuanWang", str.substring(7));
		if(str.indexOf("官方网站按钮左边=")!=-1)
			resultMap.put("guanWangLeft", str.substring(9));
		if(str.indexOf("官方网站按钮顶部=")!=-1)
			resultMap.put("guanWangTop", str.substring(9));
		if(str.indexOf("联系客服按钮显示=")!=-1)
			resultMap.put("softKefu", str.substring(9));
		if(str.indexOf("联系客服按钮左边=")!=-1)
			resultMap.put("kefuLeft", str.substring(9));
		if(str.indexOf("联系客服按钮顶部=")!=-1)
			resultMap.put("kefuTop", str.substring(9));
		if(str.indexOf("皮肤类型=")!=-1){
			resultMap.put("softPifu", str.substring(5));
			getSession().setAttribute("softPifu", str.substring(5));
		}
		
		//行情配置属性
		if(str.indexOf("导航1=")!=-1)
			resultMap.put("hangqingName", str.substring(4));
		if(str.indexOf("导航1网址=")!=-1)
			resultMap.put("hangqinglianjie", str.substring(6));
		if(str.indexOf("导航1组件=")!=-1)
			resultMap.put("hangqingZuJian", str.substring(6));
		//高手操盘配置属性
		if(str.indexOf("导航2=")!=-1)
			resultMap.put("gaoshouName", str.substring(4));
		if(str.indexOf("导航2网址=")!=-1)
			resultMap.put("gaoshoulianjie", str.substring(6));
		if(str.indexOf("导航2组件=")!=-1)
			resultMap.put("gaoshouZuJian", str.substring(6));
		//新闻配置属性
		if(str.indexOf("导航3=")!=-1)
			resultMap.put("xinwenName", str.substring(4));
		if(str.indexOf("导航3网址=")!=-1)
			resultMap.put("xinwenlianjie", str.substring(6));
		if(str.indexOf("导航3组件=")!=-1)
			resultMap.put("xinwenZuJian", str.substring(6));
		//专业配置属性
		if(str.indexOf("导航4=")!=-1)
			resultMap.put("zhuanyeName", str.substring(4));
		if(str.indexOf("导航4网址=")!=-1)
			resultMap.put("zhuanyelianjie", str.substring(6));
		if(str.indexOf("导航4组件=")!=-1)
			resultMap.put("zhuanyeZuJian", str.substring(6));
		//在线交流配置属性
		if(str.indexOf("导航5=")!=-1)
			resultMap.put("zaixianName", str.substring(4));
		if(str.indexOf("导航5网址=")!=-1)
			resultMap.put("zaixianlianjie", str.substring(6));
		if(str.indexOf("导航5组件=")!=-1)
			resultMap.put("zaixianZuJian", str.substring(6));
		//系统配置属性
		if(str.indexOf("导航6=")!=-1)
			resultMap.put("gonggaoName", str.substring(4));
		if(str.indexOf("导航6网址=")!=-1)
			resultMap.put("gonggaolianjie", str.substring(6));
		if(str.indexOf("导航6显示=")!=-1)
			resultMap.put("gonggaoShow", str.substring(6));
		if(str.indexOf("导航6组件=")!=-1)
			resultMap.put("gonggaoZuJian", str.substring(6));
		//下单配置属性
		if(str.indexOf("导航7=")!=-1)
			resultMap.put("xiadanName", str.substring(4));
		if(str.indexOf("导航7显示=")!=-1)
			resultMap.put("xiadanShow", str.substring(6));
		if(str.indexOf("导航7网址=")!=-1)
			resultMap.put("xiadanlianjie", str.substring(6));
		if(str.indexOf("导航7组件=")!=-1)
			resultMap.put("xiadanZuJian", str.substring(6));
		//开户配置属性
		if(str.indexOf("导航8=")!=-1)
			resultMap.put("kaihuName", str.substring(4));
		if(str.indexOf("导航8显示=")!=-1)
			resultMap.put("kaihuShow", str.substring(6));
		if(str.indexOf("导航8网址=")!=-1)
			resultMap.put("kaihulianjie", str.substring(6));
		if(str.indexOf("导航8组件=")!=-1)
			resultMap.put("kaihuZuJian", str.substring(6));
		//客服配置属性
		if(str.indexOf("导航9=")!=-1)
			resultMap.put("kefuName", str.substring(4));
		if(str.indexOf("导航9显示=")!=-1)
			resultMap.put("kefuShow", str.substring(6));
		if(str.indexOf("导航9网址=")!=-1)
			resultMap.put("kefulianjie", str.substring(6));
		if(str.indexOf("导航9组件=")!=-1)
			resultMap.put("kefuZuJian", str.substring(6));
		return resultMap;
	}
	
	public void fisClose(){
		if(fis!=null)
			try {
				fis.close();
				if(fos!=null)
					fos.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
	}
	
	public void brClose(){
		if(br!=null)
			try {
				br.close();
				if(fw!=null)
					fw.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
	}
	
	private String softWangZhi;
	private String softName;
	private String softGuanWang;
	private String softPifu;
	private String softZhangHao;
	private String softKefu;
	private String guanWangLeft;
	private String guanWangTop;
	private String zhangHaoLeft;
	private String zhangHaoTop;
	private String kefuLeft;
	private String kefuTop;
	//下单属性
	private String xiadanName;
	private String xiadanShow;
	private String xiadanZuJian;
	private String xiadanlianjie;
	private String xiadanMoNi;
	private String xiadanShiPan;
	private String xiadanSoft;
	//开户属性
	private String kaihuName;
	private String kaihuShow;
	private String kaihuZuJian;
	private String kaihulianjie;
	private String kaihuSoft;
	//客服属性
	private String kefuName;
	private String kefuShow;
	private String kefuZuJian;
	private String kefulianjie;
	private String kefuSoft;
	//行情决策
	private String hangqingName;
	private String hangqingZuJian;
	private String hangqinglianjie;
	private File hangqingTuBiao;
	private String hangqingTuBiaoFileName;
	private String hangqingTuBiaoContentType;
	//高手操盘
	private String gaoshouName;
	private String gaoshouZuJian;
	private String gaoshoulianjie;
	private File gaoshouTuBiao;
	private String gaoshouTuBiaoFileName;
	private String gaoshouTuBiaoContentType;
	//新闻
	private String xinwenName;
	private String xinwenZuJian;
	private String xinwenlianjie;
	private File xinwenTuBiao;
	private String xinwenTuBiaoFileName;
	private String xinwenTuBiaoContentType;
	//专业分析
	private String zhuanyeName;
	private String zhuanyeZuJian;
	private String zhuanyelianjie;
	private File zhuanyeTuBiao;
	private String zhuanyeTuBiaoFileName;
	private String zhuanyeTuBiaoContentType;
	//在线交流
	private String zaixianName;
	private String zaixianZuJian;
	private String zaixianlianjie;
	private File zaixianTuBiao;
	private String zaixianTuBiaoFileName;
	private String zaixianTuBiaoContentType;
	//系统公告
	private String gonggaoName;
	private String gonggaoZuJian;
	private String gonggaolianjie;
	private String gonggaoShow;
	private File gonggaoTuBiao;
	private String gonggaoTuBiaoFileName;
	private String gonggaoTuBiaoContentType;
	//logo
	private File logo;
	private String logoFileName;
	private String logoContentType;
	
	private String topaid;
	
	private File  Filedata;
    private String Filename;

	
	public String getTopaid() {
		return topaid;
	}

	public void setTopaid(String topaid) {
		this.topaid = topaid;
	}

	public String getGonggaoShow() {
		return gonggaoShow;
	}

	public void setGonggaoShow(String gonggaoShow) {
		if(StringUtils.isNotBlank(gonggaoShow)){
			gonggaoShow=decode(gonggaoShow);
		}
		this.gonggaoShow = gonggaoShow;
	}

	public File getFiledata() {
		return Filedata;
	}

	public void setFiledata(File filedata) {
		Filedata = filedata;
	}

	public String getFilename() {
		return Filename;
	}

	public void setFilename(String filename) {
		Filename = filename;
	}

	public String getHangqingName() {
		return hangqingName;
	}

	public void setHangqingName(String hangqingName) {
		if(StringUtils.isNotBlank(hangqingName)){
			hangqingName = decode(hangqingName);
		}
		this.hangqingName = hangqingName;
	}

	public String getGaoshouName() {
		return gaoshouName;
	}

	public String getHangqingZuJian() {
		return hangqingZuJian;
	}

	public void setHangqingZuJian(String hangqingZuJian) {
		if(StringUtils.isNotBlank(hangqingZuJian)){
			hangqingZuJian = decode(hangqingZuJian);
		}
		this.hangqingZuJian = hangqingZuJian;
	}

	public String getHangqinglianjie() {
		return hangqinglianjie;
	}

	public void setHangqinglianjie(String hangqinglianjie) {
		if(StringUtils.isNotBlank(hangqinglianjie)){
			hangqinglianjie =  decode(hangqinglianjie);
		}
		this.hangqinglianjie = hangqinglianjie;
	}

	public String getGaoshouZuJian() {
		return gaoshouZuJian;
	}

	public void setGaoshouZuJian(String gaoshouZuJian) {
		if(StringUtils.isNotBlank(gaoshouZuJian)){
			gaoshouZuJian = decode(gaoshouZuJian);
		}
		this.gaoshouZuJian = gaoshouZuJian;
	}

	public String getGaoshoulianjie() {
		return gaoshoulianjie;
	}

	public void setGaoshoulianjie(String gaoshoulianjie) {
		if(StringUtils.isNotBlank(gaoshoulianjie)){
			gaoshoulianjie =  decode(gaoshoulianjie);
		}
		this.gaoshoulianjie = gaoshoulianjie;
	}

	public void setGaoshouName(String gaoshouName) {
		if(StringUtils.isNotBlank(gaoshouName)){
			gaoshouName = decode(gaoshouName);
		}
		this.gaoshouName = gaoshouName;
	}

	public String getXinwenName() {
		return xinwenName;
	}

	public void setXinwenName(String xinwenName) {
		if(StringUtils.isNotBlank(xinwenName)){
			xinwenName = decode(xinwenName);
		}
		this.xinwenName = xinwenName;
	}

	public String getXinwenZuJian() {
		return xinwenZuJian;
	}

	public void setXinwenZuJian(String xinwenZuJian) {
		if(StringUtils.isNotBlank(xinwenZuJian)){
			xinwenZuJian = decode(xinwenZuJian);
		}
		this.xinwenZuJian = xinwenZuJian;
	}

	public String getXinwenlianjie() {
		return xinwenlianjie;
	}

	public void setXinwenlianjie(String xinwenlianjie) {
		if(StringUtils.isNotBlank(xinwenlianjie)){
			xinwenlianjie = decode(xinwenlianjie);
		}
		this.xinwenlianjie = xinwenlianjie;
	}

	public String getZhuanyeName() {
		return zhuanyeName;
	}

	public void setZhuanyeName(String zhuanyeName) {
		if(StringUtils.isNotBlank(zhuanyeName)){
			zhuanyeName = decode(zhuanyeName);
		}
		this.zhuanyeName = zhuanyeName;
	}

	public String getZhuanyeZuJian() {
		return zhuanyeZuJian;
	}

	public void setZhuanyeZuJian(String zhuanyeZuJian) {
		if(StringUtils.isNotBlank(zhuanyeZuJian)){
			zhuanyeZuJian = decode(zhuanyeZuJian);
		}
		this.zhuanyeZuJian = zhuanyeZuJian;
	}

	public String getZhuanyelianjie() {
		return zhuanyelianjie;
	}

	public void setZhuanyelianjie(String zhuanyelianjie) {
		if(StringUtils.isNotBlank(zhuanyelianjie)){
			zhuanyelianjie = decode(zhuanyelianjie);
		}
		this.zhuanyelianjie = zhuanyelianjie;
	}

	public String getZaixianName() {
		return zaixianName;
	}

	public void setZaixianName(String zaixianName) {
		if(StringUtils.isNotBlank(zaixianName)){
			zaixianName = decode(zaixianName);
		}
		this.zaixianName = zaixianName;
	}

	public String getZaixianZuJian() {
		return zaixianZuJian;
	}

	public void setZaixianZuJian(String zaixianZuJian) {
		if(StringUtils.isNotBlank(zaixianZuJian)){
			zaixianZuJian = decode(zaixianZuJian);
		}
		this.zaixianZuJian = zaixianZuJian;
	}

	public String getZaixianlianjie() {
		return zaixianlianjie;
	}

	public void setZaixianlianjie(String zaixianlianjie) {
		if(StringUtils.isNotBlank(zaixianlianjie)){
			zaixianlianjie = decode(zaixianlianjie);
		}
		this.zaixianlianjie = zaixianlianjie;
	}

	public String getGonggaoName() {
		return gonggaoName;
	}

	public void setGonggaoName(String gonggaoName) {
		if(StringUtils.isNotBlank(gonggaoName)){
			gonggaoName = decode(gonggaoName);
		}
		this.gonggaoName = gonggaoName;
	}

	public String getGonggaoZuJian() {
		return gonggaoZuJian;
	}

	public void setGonggaoZuJian(String gonggaoZuJian) {
		if(StringUtils.isNotBlank(gonggaoZuJian)){
			gonggaoZuJian = decode(gonggaoZuJian);
		}
		this.gonggaoZuJian = gonggaoZuJian;
	}

	public String getGonggaolianjie() {
		return gonggaolianjie;
	}

	public void setGonggaolianjie(String gonggaolianjie) {
		if(StringUtils.isNotBlank(gonggaolianjie)){
			gonggaolianjie = decode(gonggaolianjie);
		}
		this.gonggaolianjie = gonggaolianjie;
	}

	public String getKaihuName() {
		return kaihuName;
	}

	public void setKaihuName(String kaihuName) {
		if(StringUtils.isNotBlank(kaihuName)){
			kaihuName  = decode(kaihuName);
		}
		this.kaihuName = kaihuName;
	}

	

	public String getKaihuZuJian() {
		return kaihuZuJian;
	}

	public void setKaihuZuJian(String kaihuZuJian) {
		if(StringUtils.isNotBlank(kaihuZuJian)){
			kaihuZuJian  = decode(kaihuZuJian);
		}
		this.kaihuZuJian = kaihuZuJian;
	}

	public String getKaihulianjie() {
		return kaihulianjie;
	}

	public void setKaihulianjie(String kaihulianjie) {
		if(StringUtils.isNotBlank(kaihulianjie)){
			kaihulianjie  = decode(kaihulianjie);
		}
		this.kaihulianjie = kaihulianjie;
	}

	public String getKaihuSoft() {
		return kaihuSoft;
	}

	public void setKaihuSoft(String kaihuSoft) {
		if(StringUtils.isNotBlank(kaihuSoft)){
			kaihuSoft  = decode(kaihuSoft);
		}
		this.kaihuSoft = kaihuSoft;
	}

	public String getKefuName() {
		return kefuName;
	}

	public void setKefuName(String kefuName) {
		if(StringUtils.isNotBlank(kefuName)){
			kefuName  = decode(kefuName);
		}
		this.kefuName = kefuName;
	}

	public String getKaihuShow() {
		return kaihuShow;
	}

	public void setKaihuShow(String kaihuShow) {
		if(StringUtils.isNotBlank(kaihuShow)){
			kaihuShow  = decode(kaihuShow);
		}
		this.kaihuShow = kaihuShow;
	}

	public String getKefuShow() {
		return kefuShow;
	}

	public void setKefuShow(String kefuShow) {
		if(StringUtils.isNotBlank(kefuShow)){
			kefuShow  = decode(kefuShow);
		}
		this.kefuShow = kefuShow;
	}

	public String getKefuZuJian() {
		return kefuZuJian;
	}

	public void setKefuZuJian(String kefuZuJian) {
		if(StringUtils.isNotBlank(kefuZuJian)){
			kefuZuJian  = decode(kefuZuJian);
		}
		this.kefuZuJian = kefuZuJian;
	}

	public String getKefulianjie() {
		return kefulianjie;
	}

	public void setKefulianjie(String kefulianjie) {
		if(StringUtils.isNotBlank(kefulianjie)){
			kefulianjie  = decode(kefulianjie);
		}
		this.kefulianjie = kefulianjie;
	}

	public String getKefuSoft() {
		return kefuSoft;
	}

	public void setKefuSoft(String kefuSoft) {
		if(StringUtils.isNotBlank(kefuSoft)){
			kefuSoft  = decode(kefuSoft);
		}
		this.kefuSoft = kefuSoft;
	}

	public String getXiadanName() {
		return xiadanName;
	}

	public void setXiadanName(String xiadanName) {
		if( StringUtils.isNotBlank( xiadanName )){
			xiadanName = decode( xiadanName );
		}
		this.xiadanName = xiadanName;
	}

	public String getXiadanShow() {
		return xiadanShow;
	}

	public void setXiadanShow(String xiadanShow) {
		if( StringUtils.isNotBlank( xiadanShow )){
			xiadanShow = decode( xiadanShow );
		}
		this.xiadanShow = xiadanShow;
	}

	public String getXiadanZuJian() {
		return xiadanZuJian;
	}

	public void setXiadanZuJian(String xiadanZuJian) {
		if(StringUtils.isNotBlank(xiadanZuJian)){
			xiadanZuJian = decode(xiadanZuJian);
		}
		this.xiadanZuJian = xiadanZuJian;
	}

	public String getXiadanlianjie() {
		return xiadanlianjie;
	}

	public void setXiadanlianjie(String xiadanlianjie) {
		if(StringUtils.isNotBlank(xiadanlianjie)){
			xiadanlianjie = decode(xiadanlianjie);
		}
		this.xiadanlianjie = xiadanlianjie;
	}

	public String getXiadanMoNi() {
		return xiadanMoNi;
	}

	public void setXiadanMoNi(String xiadanMoNi) {
		if( StringUtils.isNotBlank( xiadanMoNi )){
			xiadanMoNi = decode( xiadanMoNi );
		}
		this.xiadanMoNi = xiadanMoNi;
	}

	public String getXiadanShiPan() {
		return xiadanShiPan;
	}

	public void setXiadanShiPan(String xiadanShiPan) {
		if( StringUtils.isNotBlank( xiadanShiPan )){
			xiadanShiPan = decode( xiadanShiPan );
		}
		this.xiadanShiPan = xiadanShiPan;
	}

	public String getXiadanSoft() {
		return xiadanSoft;
	}

	public void setXiadanSoft(String xiadanSoft) {
		if( StringUtils.isNotBlank( xiadanSoft )){
			xiadanSoft = decode( xiadanSoft );
		}
		this.xiadanSoft = xiadanSoft;
	}

	public String getSoftWangZhi() {
		return softWangZhi;
	}

	public void setSoftWangZhi(String softWangZhi) {
		this.softWangZhi = softWangZhi;
	}


	public String getZhangHaoLeft() {
		return zhangHaoLeft;
	}

	public void setZhangHaoLeft(String zhangHaoLeft) {
		this.zhangHaoLeft = zhangHaoLeft;
	}

	public String getZhangHaoTop() {
		return zhangHaoTop;
	}

	public void setZhangHaoTop(String zhangHaoTop) {
		this.zhangHaoTop = zhangHaoTop;
	}

	public String getKefuLeft() {
		return kefuLeft;
	}

	public void setKefuLeft(String kefuLeft) {
		this.kefuLeft = kefuLeft;
	}

	public String getKefuTop() {
		return kefuTop;
	}

	public void setKefuTop(String kefuTop) {
		this.kefuTop = kefuTop;
	}

	public String getSoftZhangHao() {
		return softZhangHao;
	}

	public void setSoftZhangHao(String softZhangHao) {
		if(StringUtils.isNotBlank(softZhangHao)){
			softZhangHao = decode(softZhangHao);
		}
		this.softZhangHao = softZhangHao;
	}

	public String getSoftKefu() {
		return softKefu;
	}

	public void setSoftKefu(String softKefu) {
		if(StringUtils.isNotBlank(softKefu)){
			softKefu = decode(softKefu);
		}
		this.softKefu = softKefu;
	}

	public String getGuanWangLeft() {
		return guanWangLeft;
	}

	public void setGuanWangLeft(String guanWangLeft) {
		this.guanWangLeft = guanWangLeft;
	}

	public String getGuanWangTop() {
		return guanWangTop;
	}

	public void setGuanWangTop(String guanWangTop) {
		this.guanWangTop = guanWangTop;
	}

	public String getSoftName() {
		return softName;
	}


	public void setSoftName(String softName) {
		if(StringUtils.isNotBlank(softName)){
			softName = decode(softName);
		}
		this.softName = softName;
	}


	public String getSoftGuanWang() {
		return softGuanWang;
	}


	public void setSoftGuanWang(String softGuanWang) {
		if(StringUtils.isNotBlank(softGuanWang)){
			softGuanWang = decode(softGuanWang);
		}
		this.softGuanWang = softGuanWang;
	}


	public String getSoftPifu() {
		return softPifu;
	}


	public void setSoftPifu(String softPifu) {
		this.softPifu = softPifu;
	}


	public File getXinwenTuBiao() {
		return xinwenTuBiao;
	}

	public void setXinwenTuBiao(File xinwenTuBiao) {
		this.xinwenTuBiao = xinwenTuBiao;
	}

	public String getXinwenTuBiaoFileName() {
		return xinwenTuBiaoFileName;
	}

	public void setXinwenTuBiaoFileName(String xinwenTuBiaoFileName) {
		this.xinwenTuBiaoFileName = xinwenTuBiaoFileName;
	}

	public String getXinwenTuBiaoContentType() {
		return xinwenTuBiaoContentType;
	}

	public void setXinwenTuBiaoContentType(String xinwenTuBiaoContentType) {
		this.xinwenTuBiaoContentType = xinwenTuBiaoContentType;
	}

	public File getZhuanyeTuBiao() {
		return zhuanyeTuBiao;
	}

	public void setZhuanyeTuBiao(File zhuanyeTuBiao) {
		this.zhuanyeTuBiao = zhuanyeTuBiao;
	}

	public String getZhuanyeTuBiaoFileName() {
		return zhuanyeTuBiaoFileName;
	}

	public void setZhuanyeTuBiaoFileName(String zhuanyeTuBiaoFileName) {
		this.zhuanyeTuBiaoFileName = zhuanyeTuBiaoFileName;
	}

	public String getZhuanyeTuBiaoContentType() {
		return zhuanyeTuBiaoContentType;
	}

	public void setZhuanyeTuBiaoContentType(String zhuanyeTuBiaoContentType) {
		this.zhuanyeTuBiaoContentType = zhuanyeTuBiaoContentType;
	}

	public File getHangqingTuBiao() {
		return hangqingTuBiao;
	}

	public void setHangqingTuBiao(File hangqingTuBiao) {
		this.hangqingTuBiao = hangqingTuBiao;
	}

	public String getHangqingTuBiaoFileName() {
		return hangqingTuBiaoFileName;
	}

	public void setHangqingTuBiaoFileName(String hangqingTuBiaoFileName) {
		this.hangqingTuBiaoFileName = hangqingTuBiaoFileName;
	}

	public String getHangqingTuBiaoContentType() {
		return hangqingTuBiaoContentType;
	}

	public void setHangqingTuBiaoContentType(String hangqingTuBiaoContentType) {
		this.hangqingTuBiaoContentType = hangqingTuBiaoContentType;
	}

	public File getGaoshouTuBiao() {
		return gaoshouTuBiao;
	}

	public void setGaoshouTuBiao(File gaoshouTuBiao) {
		this.gaoshouTuBiao = gaoshouTuBiao;
	}

	public String getGaoshouTuBiaoFileName() {
		return gaoshouTuBiaoFileName;
	}

	public void setGaoshouTuBiaoFileName(String gaoshouTuBiaoFileName) {
		this.gaoshouTuBiaoFileName = gaoshouTuBiaoFileName;
	}

	public String getGaoshouTuBiaoContentType() {
		return gaoshouTuBiaoContentType;
	}

	public void setGaoshouTuBiaoContentType(String gaoshouTuBiaoContentType) {
		this.gaoshouTuBiaoContentType = gaoshouTuBiaoContentType;
	}

	public File getZaixianTuBiao() {
		return zaixianTuBiao;
	}

	public void setZaixianTuBiao(File zaixianTuBiao) {
		this.zaixianTuBiao = zaixianTuBiao;
	}

	public String getZaixianTuBiaoFileName() {
		return zaixianTuBiaoFileName;
	}

	public void setZaixianTuBiaoFileName(String zaixianTuBiaoFileName) {
		this.zaixianTuBiaoFileName = zaixianTuBiaoFileName;
	}

	public String getZaixianTuBiaoContentType() {
		return zaixianTuBiaoContentType;
	}

	public void setZaixianTuBiaoContentType(String zaixianTuBiaoContentType) {
		this.zaixianTuBiaoContentType = zaixianTuBiaoContentType;
	}

	public File getGonggaoTuBiao() {
		return gonggaoTuBiao;
	}

	public void setGonggaoTuBiao(File gonggaoTuBiao) {
		this.gonggaoTuBiao = gonggaoTuBiao;
	}

	public String getGonggaoTuBiaoFileName() {
		return gonggaoTuBiaoFileName;
	}

	public void setGonggaoTuBiaoFileName(String gonggaoTuBiaoFileName) {
		this.gonggaoTuBiaoFileName = gonggaoTuBiaoFileName;
	}

	public String getGonggaoTuBiaoContentType() {
		return gonggaoTuBiaoContentType;
	}

	public void setGonggaoTuBiaoContentType(String gonggaoTuBiaoContentType) {
		this.gonggaoTuBiaoContentType = gonggaoTuBiaoContentType;
	}

	public File getLogo() {
		return logo;
	}

	public void setLogo(File logo) {
		this.logo = logo;
	}

	public String getLogoFileName() {
		return logoFileName;
	}

	public void setLogoFileName(String logoFileName) {
		this.logoFileName = logoFileName;
	}

	public String getLogoContentType() {
		return logoContentType;
	}

	public void setLogoContentType(String logoContentType) {
		this.logoContentType = logoContentType;
	}

	private static final long serialVersionUID = 1L;

}
